package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.GoodsLabel;
import com.ecoolex.ying.space.entity.GoodsLabelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsLabelMapper {
    long countByExample(GoodsLabelExample example);

    int deleteByExample(GoodsLabelExample example);

    int deleteByPrimaryKey(Integer labelId);

    int insert(GoodsLabel record);

    int insertSelective(@Param("record") GoodsLabel record, @Param("selective") GoodsLabel.Column ... selective);

    GoodsLabel selectOneByExample(GoodsLabelExample example);

    List<GoodsLabel> selectByExample(GoodsLabelExample example);

    GoodsLabel selectByPrimaryKey(Integer labelId);

    GoodsLabel selectByPrimaryKeyWithLogicalDelete(@Param("labelId") Integer labelId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsLabel record, @Param("example") GoodsLabelExample example, @Param("selective") GoodsLabel.Column ... selective);

    int updateByExample(@Param("record") GoodsLabel record, @Param("example") GoodsLabelExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsLabel record, @Param("selective") GoodsLabel.Column ... selective);

    int updateByPrimaryKey(GoodsLabel record);

    int batchInsert(@Param("list") List<GoodsLabel> list);

    int batchInsertSelective(@Param("list") List<GoodsLabel> list, @Param("selective") GoodsLabel.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsLabelExample example);

    int logicalDeleteByPrimaryKey(Integer labelId);
}